<%@ page import="com.carryGo.entity.Commodity" %>
<%@ page import="java.util.List" %>
<%@ page import="java.util.ArrayList" %><%--
  Created by IntelliJ IDEA.
  User: 28633
  Date: 2020/8/24
  Time: 10:26
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>搜索列表页(有品牌)</title>
    <link rel="stylesheet" type="text/css" href="static/css/style.css" />
    <link rel="stylesheet" type="text/css" href="static/css/shopping-mall-index.css" />
    <script type="text/javascript" src="static/js/jquery.js"></script>
    <script type="text/javascript" src="static/js/zhonglin.js"></script>
    <script type="text/javascript" src="static/js/zhongling2.js"></script>
</head>

<body>

<!--header-->
<%@include file="index_linkPages/header.jsp"%>



<!--内容开始-->
<%
    List<Commodity> commodities= (List<Commodity>) session.getAttribute("comm");
    if (commodities==null){
        commodities=new ArrayList<>();
    }
%>
<!--内容↓↑-->
<div class="shop-page-con w1200">
        <div class="shop-right-con">
            <ul class="shop-ul-tu shop-ul-tu1">
                <%
                    if (commodities==null || commodities.isEmpty()){
                        out.print("<li>暂无数据.....</li>");
                    }
                %>
                <%for (Commodity commodity : commodities) {%>
                    <li>
                        <div class="li-top">
                            <a href="#" class="li-top-tu"><img src="<%=commodity.getPic()%>" /></a>
                            <p class="jiage"><span class="sp1"><%=commodity.getPrice()%>></span><span class="sp2">￥50</span></p>
                        </div>
                        <p class="miaoshu"><%=commodity.getCommName()%></p>
                        <div class="li-md">
                            <div class="md-l f-l">
                                <p class="md-l-l f-l" ap="">1</p>
                                <div class="md-l-r f-l">
                                    <a href="JavaScript:;" class="md-xs" at="">∧</a>
                                    <a href="JavaScript:;" class="md-xx" ab="">∨</a>
                                </div>
                                <div style="clear:both;"></div>
                            </div>
                            <div class="md-r f-l">
                                <button class="md-l-btn1">立即购买</button>
                                <button class="md-l-btn2">加入购物车</button>
                            </div>
                            <div style="clear:both;"></div>
                        </div>
                        <p class="pingjia">19评价&nbsp;&nbsp;<%=commodity.getBusinessName()%>></p>
                    </li>
                <%}%>
<%--                <li style="margin-right:0;">--%>
<%--                    <div class="li-top">--%>
<%--                        <a href="#" class="li-top-tu"><img src="static/images2/4.png" /></a>--%>
<%--                        <p class="jiage"><span class="sp1">￥34</span><span class="sp2">￥66</span></p>--%>
<%--                    </div>--%>
<%--                    <p class="miaoshu">中国进口卤鸭爪 200克*1 包</p>--%>
<%--                    <div class="li-md">--%>
<%--                        <div class="md-l f-l">--%>
<%--                            <p class="md-l-l f-l" ap="">1</p>--%>
<%--                            <div class="md-l-r f-l">--%>
<%--                                <a href="JavaScript:;" class="md-xs" at="">∧</a>--%>
<%--                                <a href="JavaScript:;" class="md-xx" ab="">∨</a>--%>
<%--                            </div>--%>
<%--                            <div style="clear:both;"></div>--%>
<%--                        </div>--%>
<%--                        <div class="md-r f-l">--%>
<%--                            <button class="md-l-btn1">立即购买</button>--%>
<%--                            <button class="md-l-btn2">加入购物车</button>--%>
<%--                        </div>--%>
<%--                        <div style="clear:both;"></div>--%>
<%--                    </div>--%>
<%--                    <p class="pingjia">45评价&nbsp;&nbsp;火舞自营</p>--%>
<%--                </li>--%>
                <div style="clear:both;"></div>
            </ul>

            <!--分页-->
            <div class="paging">
                <div class="pag-left f-l">
                    <a href="#" class="about left-r f-l"><</a>
                    <ul class="left-m f-l">
                        <li><a href="#">1</a></li>
                        <li class="current"><a href="#">2</a></li>
                        <li><a href="#">3</a></li>
                        <li><a href="#">4</a></li>
                        <li><a href="#">5</a></li>
                        <li><a href="#">6</a></li>
                        <li><a href="#">...</a></li>
                        <li><a href="#">100</a></li>
                        <div style="clear:both;"></div>
                    </ul>
                    <a href="#" class="about left-l f-l">></a>
                    <div style="clear:both;"></div>
                </div>
                <div class="pag-right f-l">
                    <div class="jump-page f-l">
                        到第<input type="text" />页
                    </div>
                    <button class="f-l">确定</button>
                    <div style="clear:both;"></div>
                </div>
                <div style="clear:both;"></div>
            </div>
        </div>
    </div>
    <div style="clear:both;"></div>
</div>

<!--底部一块-->
<%@ include file="index_linkPages/footer.jsp"%>

<%@ include file="index_linkPages/right.jsp"%>
</body>
</html>
